package com.douyin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.douyin.dto.LoginFormDTO;
import com.douyin.dto.ResetPasswordDTO;
import com.douyin.dto.Result;
import com.douyin.dto.UserUpdateProfileDTO;
import com.douyin.entity.User;
import com.douyin.vo.UserVO;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 虎哥
 * @since 2021-12-22
 */
public interface IUserService extends IService<User> {

    Result sendCode(String email);

    Result login(LoginFormDTO loginForm);

    Result logout(String token);

    UserVO me();

    Result updatePersonalInfo(UserUpdateProfileDTO userUpdateProfileDTO);

    Result updatePassword(ResetPasswordDTO resetPasswordDTO);
}
